<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #grid, #quick_dial_tabpanels.site > #site {
            left: 0;
        }
        div {
            height: 100%;
            /*left: -100%;*/
            position: absolute;
            top: 0;
            transition-delay: 0s;
            transition-duration: 400ms;
            transition-property: left;
            transition-timing-function: linear;
            width: 100%;
        }
        #grid {
            overflow: hidden;
        }
        #grid > ol {
            list-style: none;
            margin: -10px auto 50px;
            max-width: 1160px;
            overflow: hidden;
            width: calc(100% - 2 * 40px);
        }
        ol, ul {
            margin: 0;
            padding: 0;
        }
        #grid > ol > li {
            border: 1px #d8d8d8 solid;
            box-sizing: border-box;
            float: left;
            height: 160px;
            margin: 10px;
            position: relative;
            /*width: calc((100% - 80px) / 4);*/
            width: 210px;
            -moz-box-sizing: border-box;
        }
        #grid > ol > li > button:first-of-type {
            background-position: 177px 0;
            left: 0;
            right: auto;
        }
        #grid > ol > li > button {
            background-color: transparent;
            /*background-color: red;*/
            background-image: url(../styles/image/controls-431.png);
            background-position: 147px 0;
            cursor: pointer;
            border: 0;
            /*display: none;*/
            display: block;
            height: 24px;
            position: absolute;
            right: 0;
            top: 0;
            width: 24px;
            -moz-appearance: none;
            z-index: 2;
        }
        #grid > ol > li > button:nth-of-type(2) {
            background-position: 207px 0;
            left: 24px;
            right: auto;
        }
        #grid > ol > li > a {
            color: #3c3c3c;
            display: block;
            height: 100%;
            text-decoration: none;
            width: 222px;
        }
        #grid > ol > li > a > .thumb {
            background: no-repeat white;
            background-image: none;
            background-position-x: 0%;
            background-position-y: 0%;
            display: block;
            height: 132px;
            width: 206px;
        }
        #grid > ol > li > a > .title {
            background: #fafafa;
            bottom: 0;
            display: block;
            height: 25px;
            line-height: 25px;
            overflow: hidden;
            position: absolute;
            text-indent: 3px;
            text-overflow: ellipsis;
            white-space: nowrap;
            width: 100%;
        }

    </style>
</head>
<body>
<div id="grid">
    <!--<div class="top-flex" style="height: 0px;"></div>-->
    <ol>
        <li draggable="true" data-index="1" data-fid="5" title="淘宝网">
            <button title="编辑"></button>
            <button title="刷新"></button>
            <button title="删除"></button>
            <a draggable="false" href="#" contextmenu="thumb-menu">
                <div class="thumb" style="background: #2ab8ac; background-position: center center;"></div>
                <span class="title">淘宝网</span>
            </a>
        </li>
        <li draggable="true" data-index="2" data-fid="2" title="百度">
            <button title="编辑"></button>
            <button title="刷新"></button>
            <button title="删除"></button>
            <a draggable="false" href="#" contextmenu="thumb-menu">
                <div class="thumb" style="background: #2ba659; background-position: center center;"></div>
                <span class="title">百度</span>
            </a>
        </li>
        <li draggable="true" data-index="3" data-fid="3" title="新浪">
            <button title="编辑"></button>
            <button title="刷新"></button>
            <button title="删除"></button>
            <a draggable="false" href="#" contextmenu="thumb-menu">
                <div class="thumb" style="background: #1e5799; background-position: center center;"></div>
                <span class="title">新浪</span>
            </a>
        </li>
        <li draggable="true" data-index="4" data-fid="4" title="爱奇艺">
            <button title="编辑"></button>
            <button title="刷新"></button>
            <button title="删除"></button>
            <a draggable="false" href="#" contextmenu="thumb-menu">
                <div class="thumb" style="background: #1abc9c; background-position: center center;"></div>
                <span class="title">爱奇艺</span>
            </a>
        </li>
        <li draggable="true" data-index="5" data-fid="1" title="凤凰网">
            <button title="编辑"></button>
            <button title="刷新"></button>
            <button title="删除"></button>
            <a draggable="false" href="#" contextmenu="thumb-menu">
                <div class="thumb" style="background: #00BCD4; background-position: center center;"></div>
                <span class="title">凤凰网</span>
            </a>
        </li>
        <li draggable="true" data-index="6" data-fid="6" title="京东商城">
        <button title="编辑"></button>
        <button title="刷新"></button>
        <button title="删除"></button>
            <a draggable="false" href="#" contextmenu="thumb-menu">
                <div class="thumb" style="background:#00bbbb; background-position: center center;"></div>
                <span class="title">京东商城</span>
            </a>
        </li>
        <li draggable="true" data-index="7" data-fid="7" title="天猫精选">
            <button title="编辑"></button>
            <button title="刷新"></button>
            <button title="删除"></button>
            <a draggable="false" href="#" contextmenu="thumb-menu">
                <div class="thumb" style="background: #000000; background-position: center center;"></div>
                <span class="title">天猫精选</span>
            </a>
        </li>
        <li draggable="true" data-index="8" data-fid="8" title="携程旅行">
        <button title="编辑"></button>
        <button title="刷新"></button>
        <button title="删除"></button>
            <a draggable="false" href="#" contextmenu="thumb-menu">
                <div class="thumb" style="background: #000000; background-position: center center;"></div>
                <span class="title">携程旅行</span>
            </a>
        </li>
    </ol>
</div>
</body>
</html>